{% extends "course/index.html" %}

{% block content %}
	{% if options.general.show_course_list.value == "PAGE" or options.general.show_course_list.value == "MENU" %}
	    {{block.super}}
	{% endif %}
	{% if options.general.show_course_list.value == "PAGE" or options.general.show_course_list.value == "PAGE_ALL" %}
	    <div class="main_index">
	    <table>
		<tr><td colspan="all">Courses Available:</td></tr>
		{% for course in Courses %}
		    {% cycle '<tr>' '' ''%}
			<td class="mouseover_border">
			    <a href="{% course_url course_index course=course.course_id%}">
			    <h2>{{course.course_title}}</h2>
			    {% if course.course_subtitle %}<h3>{{course.course_subtitle}}</h3>{% endif %}
			    {% if course.course_description %}<p>{{course.course_description}}</p>{% endif %}
			    </a>
			</td>
		    {% cycle '' '' '</tr>'%}
		{% endfor %}
	    </table>
	    </div>
	{% endif %}

{% endblock content %}